package com.chanzany.proxy.staticProxy;

//代售点
public class ProxyPoint implements SellTickets{
    private final SellTickets seller;

    public ProxyPoint(SellTickets seller) {
        this.seller = seller;
    }

    @Override
    public int sell(String from, String to) {
        System.out.println("代理点进行购票....");
        int price = seller.sell(from,to);
        System.out.println("手续费+5元");
        return price+5;
    }
}
